<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<th:block th:replace="common/head :: head(text='新增用户')"/>
<link rel="stylesheet" type="text/css" th:href="@{/css/admin/main.css}"/>
<body>
<div class="container">
  <th:block th:replace="common/sidebar :: sidebar(flag='user-info')"/>
  <div class="main-content">
    <div id="information">
      <h2 th:text="${functionName} + '用户'"></h2>
      <a></a>
      <form th:action="@{${functionName == '新增' ? '/admin/addSendUserInfo' : '/admin/updateSendUserInfo'}}" method="POST" th:object="${sendUserInfo}">
        <input style="display: none" type="text" name="tableId" th:field="${sendUserInfo.tableId}">
        <div class="form-group">
          <label for="toUser">收信人ID:</label>
          <input type="text" id="toUser" name="toUser" th:field="${sendUserInfo.toUser}">
        </div>
        <div class="form-group">
          <label for="toUserNick">收信人昵称:</label>
          <input type="text" id="toUserNick" name="toUserNick" th:field="${sendUserInfo.toUserNick}">
        </div>
        <div class="button-container">
          <button type="submit">保存</button>
        </div>
      </form>
    </div>
  </div>
</div>
</body>
</html>
